
//获取角色的 id
import axios from 'axios'
axios.defaults.baseURL = "http://localhost:8888/apartment/";

async function getJWTMessage(role_id){
    console.log(role_id)
    const {data:res} = await this.$http.post('/util/getJWTMessage', {
        "token": window.localStorage.getItem('token'),
        "keyName": role_id//获取的是当前角色对应的 rule_id
    })
    return res
}

export {getJWTMessage}